package com.community.web.master.controller;


import com.community.common.result.Result;
import com.community.model.entity.Parking;
import com.community.web.master.domain.dto.PageParkingDto;
import com.community.web.master.domain.vo.PageResult;
import com.community.web.master.domain.vo.ParkingWithBindVo;
import com.community.web.master.service.IParkingService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.tomcat.util.security.PrivilegedGetTccl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 李晶
 * @since 2024-07-02
 */
@RestController
@RequestMapping("/master/parking")
@Api(tags = "车位接口")
@Slf4j
public class ParkingController {
    @Autowired
    private IParkingService iParkingService;
    @GetMapping("/pageQuery")
    @ApiOperation("车位分页查询")
    public Result<PageResult> pageQuery(PageParkingDto pageParkingDto){
        log.info("车位分页查询:"+ pageParkingDto);
        PageResult result = iParkingService.pageQuery(pageParkingDto);
        return Result.success(result);
    }
}
